package com.bite.demo.controller;

import com.bite.demo.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

@Controller
public class UserController {
    private UserService service;
    @Autowired
    public void setService(UserService service) {
        this.service = service;
    }

    public void sayHi(){
        System.out.println("hi,UserController....");
        service.sayHi();
    }
}
